/*
 *  AniSprite.cpp
 *  MJ_Thirteen
 *
 *  Created by JM Macbook on 09-12-29.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#import "AniSprite.h"

#import "Role.h"

AniSprite::AniSprite(Role* roleData)
{
	m_frameIndex = 0;
	m_pRoleData = roleData;
	m_aniId = 0;
}

AniSprite::~AniSprite()
{
}

void AniSprite::ChangeAction(int ani_id)
{
	m_aniId = ani_id;
	m_frameIndex = 0;
}

bool AniSprite::UpdateFrame(double _time)
{
	return m_pRoleData->update(m_aniId, m_frameIndex, _time);
}

void AniSprite::DrawAni(int x, int y)
{
	
}